package com.ccc.demoboot.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 在库物资表
 */
@TableName(value = "material")
public class Material {

    @Override
    public String toString() {
        return "Material{" +
                "id=" + id +
                ", materialid=" + materialid +
                ", warehouseid=" + warehouseid +
                ", areaid=" + areaid +
                ", shelves=" + shelves +
                ", quantity=" + quantity +
                ", remarks='" + remarks + '\'' +
                '}';
    }

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    /**
     * 物资id
     */
    @TableField(value = "materialid")
    private Integer materialid;

    /**
     * 所属仓库id
     */
    @TableField(value = "warehouseid")
    private Integer warehouseid;

    /**
     * 所属仓库区id
     */
    @TableField(value = "areaid")
    private Integer areaid;

    /**
     * 所属仓库区货架id
     */
    @TableField(value = "shelves")
    private Integer shelves;

    /**
     * 物资数量
     */
    @TableField(value = "quantity")
    private Integer quantity;

    /**
     * 备注
     */
    @TableField(value = "remarks")
    private String remarks;

    /**
     * 获取主键
     *
     * @return id - 主键
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置主键
     *
     * @param id 主键
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取物资id
     *
     * @return materialid - 物资id
     */
    public Integer getMaterialid() {
        return materialid;
    }

    /**
     * 设置物资id
     *
     * @param materialid 物资id
     */
    public void setMaterialid(Integer materialid) {
        this.materialid = materialid;
    }

    /**
     * 获取所属仓库id
     *
     * @return warehouseid - 所属仓库id
     */
    public Integer getWarehouseid() {
        return warehouseid;
    }

    /**
     * 设置所属仓库id
     *
     * @param warehouseid 所属仓库id
     */
    public void setWarehouseid(Integer warehouseid) {
        this.warehouseid = warehouseid;
    }

    /**
     * 获取所属仓库区id
     *
     * @return areaid - 所属仓库区id
     */
    public Integer getAreaid() {
        return areaid;
    }

    /**
     * 设置所属仓库区id
     *
     * @param areaid 所属仓库区id
     */
    public void setAreaid(Integer areaid) {
        this.areaid = areaid;
    }

    /**
     * 获取所属仓库区货架id
     *
     * @return shelves - 所属仓库区货架id
     */
    public Integer getShelves() {
        return shelves;
    }

    /**
     * 设置所属仓库区货架id
     *
     * @param shelves 所属仓库区货架id
     */
    public void setShelves(Integer shelves) {
        this.shelves = shelves;
    }

    /**
     * 获取物资数量
     *
     * @return quantity - 物资数量
     */
    public Integer getQuantity() {
        return quantity;
    }

    /**
     * 设置物资数量
     *
     * @param quantity 物资数量
     */
    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    /**
     * 获取备注
     *
     * @return remarks - 备注
     */
    public String getRemarks() {
        return remarks;
    }

    /**
     * 设置备注
     *
     * @param remarks 备注
     */
    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
}